package com.fangzhi.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fangzhi.mobel.OrderLogistics;
import com.fangzhi.mobel.vo.OrderLogisticsListVo;
import com.fangzhi.mobel.vo.QueryOrderLogisticsDetailVo;
import com.fangzhi.service.OrderLogisticsService;
import com.fangzhi.mapper.OrderLogisticsMapper;
import com.fangzhi.utils.ResponseResult;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author edy
* @description 针对表【order_logistics】的数据库操作Service实现
* @createDate 2024-11-20 17:35:57
*/
@Service
public class OrderLogisticsServiceImpl extends ServiceImpl<OrderLogisticsMapper, OrderLogistics>
    implements OrderLogisticsService{

    @Override
    public List<QueryOrderLogisticsDetailVo.Detail> queryOrderLogisticsDetail(String orderId) {

        return this.getBaseMapper().queryOrderLogisticsDetail(orderId);
    }

    @Override
    public ResponseResult orderLogisticsList(String orderId) {
       List<OrderLogisticsListVo> voList =  this.getBaseMapper().orderLogisticsList(orderId);
        return ResponseResult.OK(voList);
    }
}




